package com.dyh.pojo;

public class User {

    /*
    * 唯一标识
    * */
    private int id;

    private String username;

    private String password;

    private String sex;

    private int age;

    /*
    * 用户个性签名
    * */
    private String sign;

    /*
    * 登录id
    * */
    private String openId;

    /*
    * 头像 保存的是头像的链接地址
    * */
    private String avatar;

    /*
    * 用户的权限
    * */
    private String perms;

    public User(int id, String username, String password, String sex, int age, String sign, String openId, String avatar, String perms) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.age = age;
        this.sign = sign;
        this.openId = openId;
        this.avatar = avatar;
        this.perms = perms;
    }

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", sign='" + sign + '\'' +
                ", openId='" + openId + '\'' +
                ", avatar='" + avatar + '\'' +
                ", perms='" + perms + '\'' +
                '}';
    }


}
